package lab02.Test06;


/**
 * Created by lenovo on 2017/10/15.
 */
public class Test {
    public static void main(String[] args) {
        Triangle figure1 = new Triangle(3, 4, 5);
        Ladder figure2 = new Ladder(2, 4, 2);
        Circle figure3 = new Circle(5);
        System.out.println("能构成三角形？\t" + figure1.judge());
        System.out.println("三角形的周长：" + figure1.girth());
        System.out.println("三角形的面积：" + figure1.area());
        figure1.modify(11,25,11);
        System.out.println("能构成三角形？\t" + figure1.judge());
        System.out.println("三角形的周长：" + figure1.girth());
        System.out.println("三角形的面积：" + figure1.area());

        System.out.println("梯形的面积：" + figure2.area());
        System.out.println("圆的周长：" + figure3.girth());
        System.out.println("圆的面积：" + figure3.area());
    }


}
